package it.polimi.jita.cp.block.pc;

public class ExpPenalty {

	private final double b;
	private final double k;

	public ExpPenalty(Double x0, Double x1) {
		b = Math.pow(2*x1/x0, 1.0/(x1-x0));
		k = x0/Math.pow(b, x0);
	}

	public double getValue(double x) {
		return k * Math.pow(b, x);
	}
}
